/**
 * @Method VePanel
 * @Description TODO
 * @Date 2021/1/20 14:59
 * @Created by HePing
 */
export default {
  name: 'VePanel',
  model: {
    prop: 'model'
  },
  props: {
    model: {},
    config: {
      type: Object,
      default() {
        return {}
      }
    }
  },
  render(h) {
    const vm = this
    const {
      widget: { style, nativeOn, props, attrs, className }
    } = vm.config
    return h(
      'el-card',
      {
        attrs,
        style,
        props: {
          ...props
        },
        on: vm.$listeners,
        nativeOn,
        class: className
      },
      vm.$slots.default
    )
  }
}
